package com.example.arithmeticleetcode.learnArithmetic;

/**
 * @program: arithmetic-leetcode
 * @description:
 * @author: FangZhen
 * @create: 2020-08-07 16:48
 **/
public interface List<E> {

    static final int ELEMENT_NO_FUND = -1;

    void clear();

    int size();

    boolean isEmpty();

    boolean contains(E element);

    void add(E element);

    E get(int index);

    E set(int index, E element);

    void add(int index, E element);

    E remove(int index);

    int indexOf(E element);
}
